package com.huawei.appgallery.foundation.ui.css.adapter.type;

public class CSSImage implements CSSValue {
    private int height = -1;
    private ScaleType scaleType = ScaleType.CENTER_CROP;
    private String url;
    private int width = -1;

    public enum ScaleType {
        FIT_CENTER(0),
        CENTER_CROP(1);
        
        final int nativeInt;

        private ScaleType(int i) {
            this.nativeInt = i;
        }
    }

    public CSSImage(String str) {
        this.url = str;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String str) {
        this.url = str;
    }

    public int getWidth() {
        return this.width;
    }

    public void setWidth(int i) {
        this.width = i;
    }

    public int getHeight() {
        return this.height;
    }

    public void setHeight(int i) {
        this.height = i;
    }

    public ScaleType getScaleType() {
        return this.scaleType;
    }

    public void setScaleType(ScaleType scaleType) {
        this.scaleType = scaleType;
    }
}
